﻿namespace NEvoWeb.Modules.NB_Store
{
    using System;

    public class NB_Store_OrderDetailsInfo
    {
        private string _CartXMLInfo;
        private decimal _Discount;
        private string _ItemDesc;
        private int _ModelID;
        private string _OptCode;
        private int _OrderDetailID;
        private int _OrderID;
        private string _ProductURL;
        private decimal _PurchaseCost;
        private int _Quantity;
        private decimal _Tax;
        private decimal _UnitCost;

        public string CartXMLInfo
        {
            get
            {
                return this._CartXMLInfo;
            }
            set
            {
                this._CartXMLInfo = value;
            }
        }

        public decimal Discount
        {
            get
            {
                return this._Discount;
            }
            set
            {
                this._Discount = value;
            }
        }

        public string ItemDesc
        {
            get
            {
                return this._ItemDesc;
            }
            set
            {
                this._ItemDesc = value;
            }
        }

        public int ModelID
        {
            get
            {
                return this._ModelID;
            }
            set
            {
                this._ModelID = value;
            }
        }

        public string OptCode
        {
            get
            {
                return this._OptCode;
            }
            set
            {
                this._OptCode = value;
            }
        }

        public int OrderDetailID
        {
            get
            {
                return this._OrderDetailID;
            }
            set
            {
                this._OrderDetailID = value;
            }
        }

        public int OrderID
        {
            get
            {
                return this._OrderID;
            }
            set
            {
                this._OrderID = value;
            }
        }

        public string ProductURL
        {
            get
            {
                return this._ProductURL;
            }
            set
            {
                this._ProductURL = value;
            }
        }

        public decimal PurchaseCost
        {
            get
            {
                return this._PurchaseCost;
            }
            set
            {
                this._PurchaseCost = value;
            }
        }

        public int Quantity
        {
            get
            {
                return this._Quantity;
            }
            set
            {
                this._Quantity = value;
            }
        }

        public decimal Tax
        {
            get
            {
                return this._Tax;
            }
            set
            {
                this._Tax = value;
            }
        }

        public decimal Total
        {
            get
            {
                return decimal.Multiply(new decimal(this._Quantity), this._UnitCost);
            }
        }

        public decimal TotalDiscount
        {
            get
            {
                return decimal.Multiply(new decimal(this._Quantity), this._Discount);
            }
        }

        public decimal UnitCost
        {
            get
            {
                return this._UnitCost;
            }
            set
            {
                this._UnitCost = value;
            }
        }
    }
}

